//
//  UIButton_Segment.h
//  Button_仿造UICollectionView的横向
//
//  Created by GaoFei on 16/4/2.
//  Copyright © 2016年 YF_S. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^blockReturnSelectedBtn)(NSInteger index);

@interface UIButton_Segment : UIControl

/**
block 回调函数
*/
- (void)blockReturnSelectedBtn:(blockReturnSelectedBtn)block;

@property (nonatomic,copy) blockReturnSelectedBtn block;

/**
 1.需要frame 2.需要传入几个按钮
 */
-(instancetype)initWithFrame:(CGRect)frame WithDataArray:(NSArray *)dataArr WithImageArray:(NSArray *)imgArr;

/**
 Button的名字数组
 */
@property (nonatomic,retain) NSArray * dataArr;

/**
 Button的图片数组
 */
@property (nonatomic,retain) NSArray *imgArr;

@end
